package com.cloud.pet.ops;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

import javax.annotation.PostConstruct;
import java.util.TimeZone;

/**
 * description:入口类
 * Author	Date	Changes
 * tc  2024-07-08 Created
 */
@SpringBootApplication
@EnableFeignClients(basePackages = {"com.cloud.*"})
@ComponentScan(basePackages="com.cloud")
@EnableDiscoveryClient
@EnableSwagger2
public class PetOpsApplication {

    @PostConstruct
    void setDefaultTimezone() {
        TimeZone.setDefault(TimeZone.getTimeZone("Asia/Shanghai"));
    }

    public static void main(String[] args) {
        SpringApplication.run(PetOpsApplication.class, args);
    }
}
